<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/include/jsp/baseContent.jsp"%>
<%
//when select a tab, then coloring the tab.
String tab = request.getParameter("tab"); 
%>     
<script type="text/javascript">
function moveMain(){
	<%if(session.getAttribute("user_id") != null){%>
	location.href = "/edu/userMain.action";	
	<%}else{%>
	location.href = "/edu/index.action";	
	<%}%>
	
}


</script>
<div style="margin:auto;">
	<table style="width:100%; height:<%=layout_top_h%>px; border:1px dashed purple;">
		<tr>
			<td style="width:20%;"><a href="javascript:moveMain();"><img src="images/logo.gif" border="0" ></a></td>
			<td style="width:25%;"><h2>education completion system for IS school</h2></td>
			<td style="width:55%;">
				<table style="width:100%; text-align:right; padding-right:10px;">
					<tr>
						<td><a href="/edu/logout.action">logout</a></td>
					</tr>
				</table>					
				<table style="width:100%; border:1px solid pink;">					
					<tr>
						<td style="width:25%; <%if("01".equals(tab)){%>background:#fcd<%}%> " 
						    onmouseover="this.style.background='#fcd'" 
						    <%if(!"01".equals(tab)){%> onmouseout="this.style.background='#fff';"<%}%> 
						    onclick="location.href='/edu/introduce.action';">introduce</td>
						<td style="width:25%; <%if("02".equals(tab)){%>background:#fcd<%}%> "  
						    onmouseover="this.style.background='#fcd'" 
						    <%if(!"02".equals(tab)){%> onmouseout="this.style.background='#fff';"<%}%> 
						    onclick="location.href='/edu/potential.action';">potential</td>
						<td style="width:25%; <%if("03".equals(tab)){%>background:#fcd<%}%> "  
						    onmouseover="this.style.background='#fcd'"
						    <%if(!"03".equals(tab)){%> onmouseout="this.style.background='#fff';"<%}%> 
						    onclick="location.href='/edu/lecture.action';">lecture</td>
						<td style="width:25%; <%if("04".equals(tab)){%>background:#fcd<%}%> "  
						    onmouseover="this.style.background='#fcd'"
						    <%if(!"04".equals(tab)){%> onmouseout="this.style.background='#fff';"<%}%> 
						    onclick="location.href='/edu/portfolio.action';">portfolio</td>
					</tr>
				</table>
			</td>
			
		</tr>
	</table> 
</div>